<!doctype html>
<html lang="zh-CN" data-theme="light">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <meta name="generator" content="VuePress 2.0.0-rc.0" />
    <meta name="theme" content="VuePress Theme Hope 2.0.0-rc.4" />
    <style>
      html {
        background: var(--bg-color, #fff);
      }

      html[data-theme="dark"] {
        background: var(--bg-color, #1d1e1f);
      }

      body {
        background: var(--bg-color);
      }
    </style>
    <script>
      const userMode = localStorage.getItem("vuepress-theme-hope-scheme");
      const systemDarkMode =
        window.matchMedia &&
        window.matchMedia("(prefers-color-scheme: dark)").matches;

      if (userMode === "dark" || (userMode !== "light" && systemDarkMode)) {
        document.documentElement.setAttribute("data-theme", "dark");
      }
    </script>
    <meta property="og:url" content="https://kkbt.gitee.io/obcsapi-go/obcsapi-go/md/go-version/1-%E6%A6%82%E8%BF%B0.html"><meta property="og:site_name" content="Obcsapi Docs"><meta property="og:title" content="1. 概述"><meta property="og:description" content="Go 语言版本 基于 Obsidian S3 存储， CouchDb ，本地存储和 WebDAV 的后端 API ,可借助 Obsidian 插件 Remotely-Save 插件，或者 Self-hosted LiveSync (ex:Obsidian-livesync) 插件 CouchDb 方式，保存消息到 Obsidian 库。 如果你不使用 ..."><meta property="og:type" content="article"><meta property="og:locale" content="zh-CN"><meta property="og:updated_time" content="2023-12-14T10:31:40.000Z"><meta property="article:author" content="恐咖兵糖"><meta property="article:modified_time" content="2023-12-14T10:31:40.000Z"><script type="application/ld+json">{"@context":"https://schema.org","@type":"Article","headline":"1. 概述","image":[""],"dateModified":"2023-12-14T10:31:40.000Z","author":[{"@type":"Person","name":"恐咖兵糖","url":"https://www.ftls.xyz"}]}</script><title>1. 概述 | Obcsapi Docs</title><meta name="description" content="Go 语言版本 基于 Obsidian S3 存储， CouchDb ，本地存储和 WebDAV 的后端 API ,可借助 Obsidian 插件 Remotely-Save 插件，或者 Self-hosted LiveSync (ex:Obsidian-livesync) 插件 CouchDb 方式，保存消息到 Obsidian 库。 如果你不使用 ...">
    <link rel="preload" href="/obcsapi-go/assets/style-9s-QIunb.css" as="style"><link rel="stylesheet" href="/obcsapi-go/assets/style-9s-QIunb.css">
    <link rel="modulepreload" href="/obcsapi-go/assets/app-Z7Ab_rlY.js"><link rel="modulepreload" href="/obcsapi-go/assets/1-概述.html-wPWQo3X2.js"><link rel="modulepreload" href="/obcsapi-go/assets/plugin-vue_export-helper-x3n3nnut.js"><link rel="modulepreload" href="/obcsapi-go/assets/1-概述.html-1Aget6eB.js">
    <link rel="prefetch" href="/obcsapi-go/assets/index.html-fdTDfnjr.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/sidebar.html-jB1xGYqI.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/index.html-Hvy2wwxp.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/faq.html-mKoAR3uM.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/python-version.html-vf0nybSU.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/segmenter.html-x2RHHlfq.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/10-软件联动.html-EmF0bIbD.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/2-运行与部署.html-wLD5V9DU.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/3-配置说明.html-eL8YncYb.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/4-功能使用.html-ttgMb7u6.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/5-图床说明.html-A11QdaTg.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/6-通用接口.html-U5YT_B5f.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/7-前端说明.html-KybtBryq.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/8-指令模式.html-wXtGs56E.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/9-自定义脚本.html--n-mXSKu.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/97-缓存说明.html-eFwNZ08d.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/98-开发说明.html-ZfxJGNnf.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/99-更新记录.html-0TejNJ5M.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/404.html-4ErOMmFg.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/index.html-xXuAGb7e.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/index.html-4rjMgIHd.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/sidebar.html-wGVg8F5h.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/index.html-ruH2hKFx.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/faq.html-zDuUwFZF.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/python-version.html-OJC-u2wE.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/segmenter.html-E2ACBYNW.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/10-软件联动.html-gT0uOX_3.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/2-运行与部署.html-DN2q0Bmm.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/3-配置说明.html-xRzMnhoq.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/4-功能使用.html-HA04khvf.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/5-图床说明.html-6nBjP0OC.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/6-通用接口.html-lklqyXKl.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/7-前端说明.html-EpAGTac3.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/8-指令模式.html-9WLBzs8Q.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/9-自定义脚本.html-Cpm0CPel.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/97-缓存说明.html-4cg_AhVz.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/98-开发说明.html-mSLqrr6J.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/99-更新记录.html-KOAe7ckg.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/404.html-yZnpEtqh.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/index.html-IdkU12pD.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/giscus-unEZQsJ0.js" as="script"><link rel="prefetch" href="/obcsapi-go/assets/photoswipe.esm-i2ohwMnJ.js" as="script">
  </head>
  <body>
    <div id="app"><!--[--><!--[--><!--[--><span tabindex="-1"></span><a href="#main-content" class="vp-skip-link sr-only">跳至主要內容</a><!--]--><!--[--><div class="theme-container has-toc"><!--[--><header id="navbar" class="vp-navbar"><div class="vp-navbar-start"><button type="button" class="vp-toggle-sidebar-button" title="Toggle Sidebar"><span class="icon"></span></button><!--[--><!----><!--]--><!--[--><a class="vp-link vp-brand vp-brand" href="/obcsapi-go/"><img class="vp-nav-logo" src="https://theme-hope-assets.vuejs.press/logo.svg" alt="Obcsapi Docs"><!----><span class="vp-site-name hide-in-pad">Obcsapi Docs</span></a><!--]--><!--[--><!----><!--]--></div><div class="vp-navbar-center"><!--[--><!----><!--]--><!--[--><nav class="vp-nav-links"><div class="nav-item hide-in-mobile"><a aria-label="项目主页" class="vp-link nav-link nav-link" href="/obcsapi-go/"><span class="font-icon icon fa-fw fa-sm fas fa-home" style=""></span>项目主页<!----></a></div><div class="nav-item hide-in-mobile"><a aria-label="Obcsapi 文档" class="vp-link nav-link active nav-link active" href="/obcsapi-go/md/"><span class="font-icon icon fa-fw fa-sm fas fa-laptop-code" style=""></span>Obcsapi 文档<!----></a></div><div class="nav-item hide-in-mobile"><a href="https://gitee.com/kkbt/obcsapi-go" rel="noopener noreferrer" target="_blank" aria-label="代码 Gitee" class="nav-link"><span class="font-icon icon fa-fw fa-sm fas fa-link" style=""></span>代码 Gitee<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!----></a></div><div class="nav-item hide-in-mobile"><a href="https://github.com/kkbt0/obcsapi-go" rel="noopener noreferrer" target="_blank" aria-label="代码 Github" class="nav-link"><span class="font-icon icon fa-fw fa-sm fas fa-link" style=""></span>代码 Github<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!----></a></div></nav><!--]--><!--[--><!----><!--]--></div><div class="vp-navbar-end"><!--[--><!----><!--]--><!--[--><!----><div class="nav-item vp-repo"><a class="vp-repo-link" href="https://gitee.com/kkbt/obcsapi-go" target="_blank" rel="noopener noreferrer" aria-label="Gitee"><svg xmlns="http://www.w3.org/2000/svg" class="icon gitee-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="gitee icon" style="width:1.25rem;height:1.25rem;vertical-align:middle;"><path d="M512 992C246.92 992 32 777.08 32 512S246.92 32 512 32s480 214.92 480 480-214.92 480-480 480zm242.97-533.34H482.39a23.7 23.7 0 0 0-23.7 23.7l-.03 59.28c0 13.08 10.59 23.7 23.7 23.7h165.96a23.7 23.7 0 0 1 23.7 23.7v11.85a71.1 71.1 0 0 1-71.1 71.1H375.71a23.7 23.7 0 0 1-23.7-23.7V423.11a71.1 71.1 0 0 1 71.1-71.1h331.8a23.7 23.7 0 0 0 23.7-23.7l.06-59.25a23.73 23.73 0 0 0-23.7-23.73H423.11a177.78 177.78 0 0 0-177.78 177.75v331.83c0 13.08 10.62 23.7 23.7 23.7h349.62a159.99 159.99 0 0 0 159.99-159.99V482.33a23.7 23.7 0 0 0-23.7-23.7z"></path></svg></a></div><div class="nav-item hide-in-mobile"><button type="button" id="appearance-switch"><svg xmlns="http://www.w3.org/2000/svg" class="icon auto-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="auto icon" style="display:block;"><path d="M512 992C246.92 992 32 777.08 32 512S246.92 32 512 32s480 214.92 480 480-214.92 480-480 480zm0-840c-198.78 0-360 161.22-360 360 0 198.84 161.22 360 360 360s360-161.16 360-360c0-198.78-161.22-360-360-360zm0 660V212c165.72 0 300 134.34 300 300 0 165.72-134.28 300-300 300z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" class="icon dark-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="dark icon" style="display:none;"><path d="M524.8 938.667h-4.267a439.893 439.893 0 0 1-313.173-134.4 446.293 446.293 0 0 1-11.093-597.334A432.213 432.213 0 0 1 366.933 90.027a42.667 42.667 0 0 1 45.227 9.386 42.667 42.667 0 0 1 10.24 42.667 358.4 358.4 0 0 0 82.773 375.893 361.387 361.387 0 0 0 376.747 82.774 42.667 42.667 0 0 1 54.187 55.04 433.493 433.493 0 0 1-99.84 154.88 438.613 438.613 0 0 1-311.467 128z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" class="icon light-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="light icon" style="display:none;"><path d="M952 552h-80a40 40 0 0 1 0-80h80a40 40 0 0 1 0 80zM801.88 280.08a41 41 0 0 1-57.96-57.96l57.96-58a41.04 41.04 0 0 1 58 58l-58 57.96zM512 752a240 240 0 1 1 0-480 240 240 0 0 1 0 480zm0-560a40 40 0 0 1-40-40V72a40 40 0 0 1 80 0v80a40 40 0 0 1-40 40zm-289.88 88.08-58-57.96a41.04 41.04 0 0 1 58-58l57.96 58a41 41 0 0 1-57.96 57.96zM192 512a40 40 0 0 1-40 40H72a40 40 0 0 1 0-80h80a40 40 0 0 1 40 40zm30.12 231.92a41 41 0 0 1 57.96 57.96l-57.96 58a41.04 41.04 0 0 1-58-58l58-57.96zM512 832a40 40 0 0 1 40 40v80a40 40 0 0 1-80 0v-80a40 40 0 0 1 40-40zm289.88-88.08 58 57.96a41.04 41.04 0 0 1-58 58l-57.96-58a41 41 0 0 1 57.96-57.96z"></path></svg></button></div><!----><!--]--><!--[--><!----><!--]--><button type="button" class="vp-toggle-navbar-button" aria-label="Toggle Navbar" aria-expanded="false" aria-controls="nav-screen"><span><span class="vp-top"></span><span class="vp-middle"></span><span class="vp-bottom"></span></span></button></div></header><!----><!--]--><!----><div class="toggle-sidebar-wrapper"><span class="arrow start"></span></div><aside id="sidebar" class="vp-sidebar"><!--[--><!----><!--]--><ul class="vp-sidebar-links"><li><!--[--><a aria-label="项目主页" class="vp-link nav-link vp-sidebar-link vp-sidebar-page nav-link vp-sidebar-link vp-sidebar-page" href="/obcsapi-go/"><span class="font-icon icon fa-fw fa-sm fas fa-home" style=""></span>项目主页<!----></a><ul class="vp-sidebar-sub-headers"></ul><!--]--></li><li><!--[--><a aria-label="Obcsapi 文档" class="vp-link nav-link vp-sidebar-link vp-sidebar-page nav-link vp-sidebar-link vp-sidebar-page" href="/obcsapi-go/md.html"><span class="font-icon icon fa-fw fa-sm fas fa-laptop-code" style=""></span>Obcsapi 文档<!----></a><ul class="vp-sidebar-sub-headers"></ul><!--]--></li><li><section class="vp-sidebar-group"><p class="vp-sidebar-heading clickable active"><span class="font-icon icon fa-fw fa-sm fas fa-book" style=""></span><a aria-label="Go 版本" class="vp-link nav-link active vp-sidebar-title nav-link active vp-sidebar-title" href="/obcsapi-go/md/go-version.html"><!---->Go 版本<!----></a><!----></p><ul class="vp-sidebar-links"><li><!--[--><a aria-label="1. 概述" class="vp-link nav-link active vp-sidebar-link vp-sidebar-page active nav-link active vp-sidebar-link vp-sidebar-page active" href="/obcsapi-go/md/go-version/1-%E6%A6%82%E8%BF%B0.html"><!---->1. 概述<!----></a><ul class="vp-sidebar-sub-headers"><li class="vp-sidebar-sub-header"><a aria-label="Go 语言版本" class="vp-link nav-link vp-sidebar-link vp-heading nav-link vp-sidebar-link vp-heading" href="/obcsapi-go/md/go-version/1-%E6%A6%82%E8%BF%B0.html#go-语言版本"><!---->Go 语言版本<!----></a><ul class="vp-sidebar-sub-headers"></ul></li></ul><!--]--></li><li><!--[--><a aria-label="2. 运行与部署" class="vp-link nav-link vp-sidebar-link vp-sidebar-page nav-link vp-sidebar-link vp-sidebar-page" href="/obcsapi-go/md/go-version/2-%E8%BF%90%E8%A1%8C%E4%B8%8E%E9%83%A8%E7%BD%B2.html"><!---->2. 运行与部署<!----></a><ul class="vp-sidebar-sub-headers"></ul><!--]--></li><li><!--[--><a aria-label="3. 配置说明" class="vp-link nav-link vp-sidebar-link vp-sidebar-page nav-link vp-sidebar-link vp-sidebar-page" href="/obcsapi-go/md/go-version/3-%E9%85%8D%E7%BD%AE%E8%AF%B4%E6%98%8E.html"><!---->3. 配置说明<!----></a><ul class="vp-sidebar-sub-headers"></ul><!--]--></li><li><!--[--><a aria-label="4. 功能使用" class="vp-link nav-link vp-sidebar-link vp-sidebar-page nav-link vp-sidebar-link vp-sidebar-page" href="/obcsapi-go/md/go-version/4-%E5%8A%9F%E8%83%BD%E4%BD%BF%E7%94%A8.html"><!---->4. 功能使用<!----></a><ul class="vp-sidebar-sub-headers"></ul><!--]--></li><li><!--[--><a aria-label="5. 图床说明" class="vp-link nav-link vp-sidebar-link vp-sidebar-page nav-link vp-sidebar-link vp-sidebar-page" href="/obcsapi-go/md/go-version/5-%E5%9B%BE%E5%BA%8A%E8%AF%B4%E6%98%8E.html"><!---->5. 图床说明<!----></a><ul class="vp-sidebar-sub-headers"></ul><!--]--></li><li><!--[--><a aria-label="6. 通用接口" class="vp-link nav-link vp-sidebar-link vp-sidebar-page nav-link vp-sidebar-link vp-sidebar-page" href="/obcsapi-go/md/go-version/6-%E9%80%9A%E7%94%A8%E6%8E%A5%E5%8F%A3.html"><!---->6. 通用接口<!----></a><ul class="vp-sidebar-sub-headers"></ul><!--]--></li><li><!--[--><a aria-label="7. 前端说明" class="vp-link nav-link vp-sidebar-link vp-sidebar-page nav-link vp-sidebar-link vp-sidebar-page" href="/obcsapi-go/md/go-version/7-%E5%89%8D%E7%AB%AF%E8%AF%B4%E6%98%8E.html"><!---->7. 前端说明<!----></a><ul class="vp-sidebar-sub-headers"></ul><!--]--></li><li><!--[--><a aria-label="8. 指令模式" class="vp-link nav-link vp-sidebar-link vp-sidebar-page nav-link vp-sidebar-link vp-sidebar-page" href="/obcsapi-go/md/go-version/8-%E6%8C%87%E4%BB%A4%E6%A8%A1%E5%BC%8F.html"><!---->8. 指令模式<!----></a><ul class="vp-sidebar-sub-headers"></ul><!--]--></li><li><!--[--><a aria-label="9. 自定义脚本" class="vp-link nav-link vp-sidebar-link vp-sidebar-page nav-link vp-sidebar-link vp-sidebar-page" href="/obcsapi-go/md/go-version/9-%E8%87%AA%E5%AE%9A%E4%B9%89%E8%84%9A%E6%9C%AC.html"><!---->9. 自定义脚本<!----></a><ul class="vp-sidebar-sub-headers"></ul><!--]--></li><li><!--[--><a aria-label="10. 软件联动" class="vp-link nav-link vp-sidebar-link vp-sidebar-page nav-link vp-sidebar-link vp-sidebar-page" href="/obcsapi-go/md/go-version/10-%E8%BD%AF%E4%BB%B6%E8%81%94%E5%8A%A8.html"><!---->10. 软件联动<!----></a><ul class="vp-sidebar-sub-headers"></ul><!--]--></li><li><!--[--><a aria-label="97 缓存说明" class="vp-link nav-link vp-sidebar-link vp-sidebar-page nav-link vp-sidebar-link vp-sidebar-page" href="/obcsapi-go/md/go-version/97-%E7%BC%93%E5%AD%98%E8%AF%B4%E6%98%8E.html"><!---->97 缓存说明<!----></a><ul class="vp-sidebar-sub-headers"></ul><!--]--></li><li><!--[--><a aria-label="98. 开发说明" class="vp-link nav-link vp-sidebar-link vp-sidebar-page nav-link vp-sidebar-link vp-sidebar-page" href="/obcsapi-go/md/go-version/98-%E5%BC%80%E5%8F%91%E8%AF%B4%E6%98%8E.html"><!---->98. 开发说明<!----></a><ul class="vp-sidebar-sub-headers"></ul><!--]--></li><li><!--[--><a aria-label="99. 更新记录" class="vp-link nav-link vp-sidebar-link vp-sidebar-page nav-link vp-sidebar-link vp-sidebar-page" href="/obcsapi-go/md/go-version/99-%E6%9B%B4%E6%96%B0%E8%AE%B0%E5%BD%95.html"><!---->99. 更新记录<!----></a><ul class="vp-sidebar-sub-headers"></ul><!--]--></li></ul></section></li><li><!--[--><a href="https://kkbt.gitee.io/obcsapi-go/swagger/swagger.html" rel="noopener noreferrer" target="_blank" aria-label="Go 版本 Swagger(Scalar)" class="nav-link vp-sidebar-link vp-sidebar-page"><span class="font-icon icon fa-fw fa-sm fas fa-book" style=""></span>Go 版本 Swagger(Scalar)<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!----></a><ul class="vp-sidebar-sub-headers"></ul><!--]--></li><li><!--[--><a aria-label="Python 版本" class="vp-link nav-link vp-sidebar-link vp-sidebar-page nav-link vp-sidebar-link vp-sidebar-page" href="/obcsapi-go/md/python-version.html"><span class="font-icon icon fa-fw fa-sm fas fa-book" style=""></span>Python 版本<!----></a><ul class="vp-sidebar-sub-headers"></ul><!--]--></li><li><!--[--><a aria-label="FAQ" class="vp-link nav-link vp-sidebar-link vp-sidebar-page nav-link vp-sidebar-link vp-sidebar-page" href="/obcsapi-go/md/faq.html"><!---->FAQ<!----></a><ul class="vp-sidebar-sub-headers"></ul><!--]--></li></ul><!--[--><!----><!--]--></aside><!--[--><main id="main-content" class="vp-page"><!--[--><!--[--><!----><!--]--><!----><nav class="vp-breadcrumb disable"></nav><div class="vp-page-title"><h1><!---->1. 概述</h1><div class="page-info"><span class="page-author-info" aria-label="作者🖊" data-balloon-pos="down"><svg xmlns="http://www.w3.org/2000/svg" class="icon author-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="author icon"><path d="M649.6 633.6c86.4-48 147.2-144 147.2-249.6 0-160-128-288-288-288s-288 128-288 288c0 108.8 57.6 201.6 147.2 249.6-121.6 48-214.4 153.6-240 288-3.2 9.6 0 19.2 6.4 25.6 3.2 9.6 12.8 12.8 22.4 12.8h704c9.6 0 19.2-3.2 25.6-12.8 6.4-6.4 9.6-16 6.4-25.6-25.6-134.4-121.6-240-243.2-288z"></path></svg><span><a class="page-author-item" href="https://www.ftls.xyz" target="_blank" rel="noopener noreferrer">恐咖兵糖</a></span><span property="author" content="恐咖兵糖"></span></span><!----><span class="page-date-info" aria-label="写作日期📅" data-balloon-pos="down"><svg xmlns="http://www.w3.org/2000/svg" class="icon calendar-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="calendar icon"><path d="M716.4 110.137c0-18.753-14.72-33.473-33.472-33.473-18.753 0-33.473 14.72-33.473 33.473v33.473h66.993v-33.473zm-334.87 0c0-18.753-14.72-33.473-33.473-33.473s-33.52 14.72-33.52 33.473v33.473h66.993v-33.473zm468.81 33.52H716.4v100.465c0 18.753-14.72 33.473-33.472 33.473a33.145 33.145 0 01-33.473-33.473V143.657H381.53v100.465c0 18.753-14.72 33.473-33.473 33.473a33.145 33.145 0 01-33.473-33.473V143.657H180.6A134.314 134.314 0 0046.66 277.595v535.756A134.314 134.314 0 00180.6 947.289h669.74a134.36 134.36 0 00133.94-133.938V277.595a134.314 134.314 0 00-133.94-133.938zm33.473 267.877H147.126a33.145 33.145 0 01-33.473-33.473c0-18.752 14.72-33.473 33.473-33.473h736.687c18.752 0 33.472 14.72 33.472 33.473a33.145 33.145 0 01-33.472 33.473z"></path></svg><span><!----></span><meta property="datePublished" content="2023-12-09T09:33:57.000Z"></span><!----><span class="page-reading-time-info" aria-label="阅读时间⌛" data-balloon-pos="down"><svg xmlns="http://www.w3.org/2000/svg" class="icon timer-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="timer icon"><path d="M799.387 122.15c4.402-2.978 7.38-7.897 7.38-13.463v-1.165c0-8.933-7.38-16.312-16.312-16.312H256.33c-8.933 0-16.311 7.38-16.311 16.312v1.165c0 5.825 2.977 10.874 7.637 13.592 4.143 194.44 97.22 354.963 220.201 392.763-122.204 37.542-214.893 196.511-220.2 389.397-4.661 5.049-7.638 11.651-7.638 19.03v5.825h566.49v-5.825c0-7.379-2.849-13.981-7.509-18.9-5.049-193.016-97.867-351.985-220.2-389.527 123.24-37.67 216.446-198.453 220.588-392.892zM531.16 450.445v352.632c117.674 1.553 211.787 40.778 211.787 88.676H304.097c0-48.286 95.149-87.382 213.728-88.676V450.445c-93.077-3.107-167.901-81.297-167.901-177.093 0-8.803 6.99-15.793 15.793-15.793 8.803 0 15.794 6.99 15.794 15.793 0 80.261 63.69 145.635 142.01 145.635s142.011-65.374 142.011-145.635c0-8.803 6.99-15.793 15.794-15.793s15.793 6.99 15.793 15.793c0 95.019-73.789 172.82-165.96 177.093z"></path></svg><span>小于 1 分钟</span><meta property="timeRequired" content="PT1M"></span><!----><!----></div><hr></div><div class="toc-place-holder"><aside id="toc"><!--[--><!----><!--]--><div class="toc-header">此页内容<button type="button" class="print-button" title="打印"><svg xmlns="http://www.w3.org/2000/svg" class="icon print-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="print icon"><path d="M819.2 364.8h-44.8V128c0-17.067-14.933-32-32-32H281.6c-17.067 0-32 14.933-32 32v236.8h-44.8C145.067 364.8 96 413.867 96 473.6v192c0 59.733 49.067 108.8 108.8 108.8h44.8V896c0 17.067 14.933 32 32 32h460.8c17.067 0 32-14.933 32-32V774.4h44.8c59.733 0 108.8-49.067 108.8-108.8v-192c0-59.733-49.067-108.8-108.8-108.8zM313.6 160h396.8v204.8H313.6V160zm396.8 704H313.6V620.8h396.8V864zM864 665.6c0 25.6-19.2 44.8-44.8 44.8h-44.8V588.8c0-17.067-14.933-32-32-32H281.6c-17.067 0-32 14.933-32 32v121.6h-44.8c-25.6 0-44.8-19.2-44.8-44.8v-192c0-25.6 19.2-44.8 44.8-44.8h614.4c25.6 0 44.8 19.2 44.8 44.8v192z"></path></svg></button></div><div class="toc-wrapper"><ul class="toc-list"><!--[--><li class="toc-item"><a class="vp-link toc-link level2 toc-link level2" href="#go-语言版本">Go 语言版本</a></li><!----><!--]--></ul><div class="toc-marker" style="top:-1.7rem;"></div></div><!--[--><!----><!--]--></aside></div><!--[--><!----><!--]--><div class="theme-hope-content"><h2 id="go-语言版本" tabindex="-1"><a class="header-anchor" href="#go-语言版本" aria-hidden="true">#</a> Go 语言版本</h2><p>基于 Obsidian S3 存储， CouchDb ，本地存储和 WebDAV 的后端 API ,可借助 Obsidian 插件 Remotely-Save 插件，或者 Self-hosted LiveSync (ex:Obsidian-livesync) 插件 CouchDb 方式，保存消息到 Obsidian 库。</p><p>如果你不使用 Obsidian ，也可以借助坚果云，或者 WebDav 进行文件同步，配合其他文本编辑器使用。</p><figure><img src="/obcsapi-go/assets/default_canvas-Lgb570Ur.svg" alt="" tabindex="0" loading="lazy"><figcaption></figcaption></figure><p>绘图 PowerBy <a href="https://handraw.top/" target="_blank" rel="noopener noreferrer">Handraw<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a></p><figure><img src="/obcsapi-go/assets/canvas_2_show-7GDUl6Ke.svg" alt="" tabindex="0" loading="lazy"><figcaption></figcaption></figure><p>可见 <a href="https://gitee.com/kkbt/obcsapi-go" target="_blank" rel="noopener noreferrer">https://gitee.com/kkbt/obcsapi-go<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a></p><figure><img src="/obcsapi-go/assets/Snipaste_2023-05-09_21-21-34-zoPBhDK3.png" alt="" tabindex="0" loading="lazy"><figcaption></figcaption></figure><figure><img src="/obcsapi-go/assets/Snipaste_2023-05-09_21-22-36-EznA0PKC.png" alt="" tabindex="0" loading="lazy"><figcaption></figcaption></figure><figure><img src="/obcsapi-go/assets/Snipaste_2023-05-09_21-26-04-9hppIN7P.png" alt="" tabindex="0" loading="lazy"><figcaption></figcaption></figure><figure><img src="/obcsapi-go/assets/Snipaste_2023-05-09_21-26-13-R8yP_YFf.png" alt="" tabindex="0" loading="lazy"><figcaption></figcaption></figure><p>前端地址: 部署后访问根路径，或 <a href="https://kkbt.gitee.io/web/" target="_blank" rel="noopener noreferrer">https://kkbt.gitee.io/web/<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a>。</p><p>通常 <a href="https://kkbt.gitee.io/web/" target="_blank" rel="noopener noreferrer">https://kkbt.gitee.io/web/<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a> 为最新版本，可能不兼容早期服务器版本。支持 http/https<br> 此外，这是 <a href="https://gitee.com/kkbt/web" target="_blank" rel="noopener noreferrer">https://gitee.com/kkbt/web<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a> 项目 Gitee page ，可自行 fork 部署。</p><blockquote><p>测试账户 前端登录设置<br> 服务器: <a href="https://obcsapi-demo-kkbt-ltsuxwzrah.cn-hangzhou.fcapp.run" target="_blank" rel="noopener noreferrer">https://obcsapi-demo-kkbt-ltsuxwzrah.cn-hangzhou.fcapp.run<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a><br> kkbt password</p></blockquote><blockquote><p>Tauri 桌面端应用</p></blockquote><p><a href="https://tauri.app/zh-cn/" target="_blank" rel="noopener noreferrer">Tauri 可以构建跨平台的快速、安全、前端隔离应用<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a>。图片为 桌面端应用 - Windows - 虽然大概直接用 Obsidian 更方便一些。</p><figure><img src="/obcsapi-go/assets/Snipaste_2023-08-01_12-57-50-tauri-windows-2Wz7i-XO.png" alt="" tabindex="0" loading="lazy"><figcaption></figcaption></figure><p>可从 <a href="https://gitee.com/kkbt/obcsapi-go/releases" target="_blank" rel="noopener noreferrer">https://gitee.com/kkbt/obcsapi-go/releases<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a> 下载</p></div><!--[--><!----><!--]--><footer class="page-meta"><div class="meta-item edit-link"><a href="https://gitee.com/kkbt/obcsapi-go/edit/main/src/md/go-version/1-概述.md" rel="noopener noreferrer" target="_blank" aria-label="编辑此页" class="nav-link label"><!--[--><svg xmlns="http://www.w3.org/2000/svg" class="icon edit-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="edit icon"><path d="M430.818 653.65a60.46 60.46 0 0 1-50.96-93.281l71.69-114.012 7.773-10.365L816.038 80.138A60.46 60.46 0 0 1 859.225 62a60.46 60.46 0 0 1 43.186 18.138l43.186 43.186a60.46 60.46 0 0 1 0 86.373L588.879 565.55l-8.637 8.637-117.466 68.234a60.46 60.46 0 0 1-31.958 11.229z"></path><path d="M728.802 962H252.891A190.883 190.883 0 0 1 62.008 771.98V296.934a190.883 190.883 0 0 1 190.883-192.61h267.754a60.46 60.46 0 0 1 0 120.92H252.891a69.962 69.962 0 0 0-69.098 69.099V771.98a69.962 69.962 0 0 0 69.098 69.098h475.911A69.962 69.962 0 0 0 797.9 771.98V503.363a60.46 60.46 0 1 1 120.922 0V771.98A190.883 190.883 0 0 1 728.802 962z"></path></svg><!--]-->编辑此页<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!----></a></div><div class="meta-item git-info"><div class="update-time"><span class="label">上次编辑于: </span><!----></div><div class="contributors"><span class="label">贡献者: </span><!--[--><!--[--><span class="contributor" title="email: 0@ftls.xyz">kkbt</span><!--]--><!--]--></div></div></footer><nav class="vp-page-nav"><!----><a aria-label="2. 运行与部署" class="vp-link nav-link next nav-link next" href="/obcsapi-go/md/go-version/2-%E8%BF%90%E8%A1%8C%E4%B8%8E%E9%83%A8%E7%BD%B2.html"><div class="hint">下一页<span class="arrow end"></span></div><div class="link">2. 运行与部署<!----></div></a></nav><div id="comment" class="giscus-wrapper input-top" style="display:block;"><div class="loading-icon-wrapper" style="display:flex;align-items:center;justify-content:center;height:96px"><svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" preserveAspectRatio="xMidYMid" viewBox="25 25 50 50"><animateTransform attributeName="transform" type="rotate" dur="2s" keyTimes="0;1" repeatCount="indefinite" values="0;360"></animateTransform><circle cx="50" cy="50" r="20" fill="none" stroke="currentColor" stroke-width="4" stroke-linecap="round"><animate attributeName="stroke-dasharray" dur="1.5s" keyTimes="0;0.5;1" repeatCount="indefinite" values="1,200;90,200;1,200"></animate><animate attributeName="stroke-dashoffset" dur="1.5s" keyTimes="0;0.5;1" repeatCount="indefinite" values="0;-35px;-125px"></animate></circle></svg></div></div><!--[--><!----><!--]--><!--]--></main><!--]--><footer class="vp-footer-wrapper"><div class="vp-footer"><a href="https://www.ftls.xyz/" target="_blank" rel="noopener noreferrer">恐咖兵糖</a></div><div class="vp-copyright">Copyright © 2023 恐咖兵糖</div></footer></div><!--]--><!--]--><!----><!--]--></div>
    <script type="module" src="/obcsapi-go/assets/app-Z7Ab_rlY.js" defer></script>
  </body>
</html>
